﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ControlsLib
{
    public static class MessageBoxFactory
    {
        public static string Caption { get; set; }
        public static MessageBoxButtons Buttons { get; set; }
        public static MessageBoxIcon Icon { get; set; }

        public static DialogResult Create(string text, MessageBoxButtons buttons, MessageBoxIcon icon)
        {
            return MessageBox.Show(text, Caption, buttons, icon);
        }
    }
}
